{ INFORMATICS.MCCME.RU
  Problem statement: http://informatics.mccme.ru/moodle/mod/statements/view3.php?chapterid=328
  Verdict: Accepted
}
uses SysUtils, Math;
 
type
	point=record
		x,y:longint;
		s:int64;
	end;
 
var
	i,n,kk:longint;
	s1,s2,s3:int64;
	s:string;
 
begin
reset(input,'input.txt');
rewrite(output,'output.txt');
readln(n);
s1:=0;
s2:=0;
s3:=0;
for i:=1 to n do begin
	readln(S);
	delete(s,1,pos(' ',s));
	delete(s,1,pos(' ',s));
	kk:=pos(' ',s);
	inc(s1,strtoint(copy(s,1,kk-1)));
	delete(s,1,kk);
	kk:=pos(' ',s);
	inc(s2,strtoint(copy(s,1,kk-1)));
	delete(s,1,kk);	
	kk:=pos(' ',s);
	if kk=0 then inc(s3,strtoint(s)) else inc(s3,strtoint(copy(s,1,kk-1)));
end;
write((s1/n):0:15,' ',(s2/n):0:15,' ',(s3/n):0:15);
end.
 